package com.lb.activity.sys.service;

import com.lb.activity.po.Dept;
import com.lb.activity.util.ResultUtil;

import java.util.List;

/**
 * @author Xiao
 * @create 2018-11-12 17:01
 **/
public interface DeptService {

    List<Dept> AllDepts();

    ResultUtil addDept(Dept dept);

    int repet(String deptName);

    Dept getById(Long id);

    ResultUtil updateDept(Dept dept);

    ResultUtil removeDept(Long id);

    String deptTreeI();
}
